package com.chen.wow.event;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Component;

/**
 * 
 * <p>Title:DemoEventPublisher</>
 * <p>Description:3.事件发布类</p>
 * @author chen
 * 2017年3月2日下午6:31:40
 */
@Component
public class DemoEventPublisher {
	@Autowired
	ApplicationContext context;
	
	public void publish(String msg){
		context.publishEvent(new DemoEvent(this,msg));
	}
}
